<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Contact */
/* @var $form yii\widgets\ActiveForm */
?>
<link rel="stylesheet" href="/static/css/form.css">
<div class="form">

    <?php $form = ActiveForm::begin([
            'options'=>['class' => '','style'=>'padding-top:20px;'],
            'fieldConfig' => [
                'labelOptions' => ['class' => 'layui-form-label'],
                'inputOptions' => ['class' => 'layui-input','style'=>'width:300px'],
            ]
        
    ]); ?>
    <fieldset class="layui-elem-field layui-field-title" >
        <legend> <?= $model->isNewRecord?'新增':'修改' ?>资料</legend>
    </fieldset>
    <?php echo $form->errorSummary($model); ?>
    <table class="table table-bordered table-hover ">	

        <tr>
        	<td width="20%" class="tableleft"><?= $model->attributeLabels()['name'] ?><span class="required">*</span></td>
            <td><?= $form->field($model, 'name')->textInput(['maxlength' => true])->label(false) ?></td>
  	  	</tr>

        <tr>
        	<td width="20%" class="tableleft"><?= $model->attributeLabels()['remark'] ?></td>
            <td><?= $form->field($model, 'remark')->textInput(['maxlength' => true])->label(false) ?></td>
  	  	</tr>

<!-- 
        <tr>
        	<td width="20%" class="tableleft"><?= $model->attributeLabels()['linkMans'] ?><span class="required">*</span></td>
            <td><?= $form->field($model, 'linkMans')->textarea(['rows' => 6])->label(false) ?></td>
  	  	</tr>
 -->
    </table>
    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '保存' : '提交修改', ['class' => 'layui-btn']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
